package cn.edu.nju.software.cdiy.bean;

import java.io.Serializable;
import java.util.Date;

public class Scheme implements Serializable {

	private static final long serialVersionUID = 9034497069703369923L;

	private Long id;
	
	private MainBoard mainBoard;
	private CPU cpu;
	private Memory memory;
	private int memoryNum;
	private Disk disk;
	private int diskNum;
	private Graphics graphics;
	private Chassis chassis;
	private Power power;
	private Radiator radiator;
	private Driver driver;
	private Monitor monitor;
	private SoundBox soundBox;
	private SoundCard soundCard;
	private NetworkAdapter networkAdapter;

	private String schemeName;
	private Value type;
	private Date time;
	private Long userId;
	private String userName;
	private double wscore;
	private double zscore;
	private double performance;
	private int price;
	private int sale;
	private String description;
	private String rsv1;
	private String rsv2;
	private String rsv3;
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public MainBoard getMainBoard() {
		return mainBoard;
	}

	public void setMainBoard(MainBoard mainBoard) {
		this.mainBoard = mainBoard;
	}

	public void setMainBoard(int id) {
		mainBoard = new MainBoard();
		mainBoard.setId(id);
	}

	public CPU getCpu() {
		return cpu;
	}

	public void setCpu(CPU cpu) {
		this.cpu = cpu;
	}

	public void setCpu(int id) {
		cpu = new CPU();
		cpu.setId(id);
	}

	public Memory getMemory() {
		return memory;
	}

	public void setMemory(Memory memory) {
		this.memory = memory;
	}

	public void setMemory(int id) {
		memory = new Memory();
		memory.setId(id);
	}

	public int getMemoryNum() {
		return memoryNum;
	}

	public void setMemoryNum(int memoryNum) {
		this.memoryNum = memoryNum;
	}

	public Disk getDisk() {
		return disk;
	}

	public void setDisk(Disk disk) {
		this.disk = disk;
	}

	public void setDisk(int id) {
		disk = new Disk();
		disk.setId(id);
	}

	public int getDiskNum() {
		return diskNum;
	}

	public void setDiskNum(int diskNum) {
		this.diskNum = diskNum;
	}

	public Graphics getGraphics() {
		return graphics;
	}

	public void setGraphics(Graphics graphics) {
		this.graphics = graphics;
	}

	public void setGraphics(int id) {
		graphics = new Graphics();
		graphics.setId(id);
	}

	public Chassis getChassis() {
		return chassis;
	}

	public void setChassis(Chassis chassis) {
		this.chassis = chassis;
	}

	public void setChassis(int id) {
		chassis = new Chassis();
		chassis.setId(id);
	}

	public Power getPower() {
		return power;
	}

	public void setPower(Power power) {
		this.power = power;
	}

	public void setPower(int id) {
		power = new Power();
		power.setId(id);
	}

	public Radiator getRadiator() {
		return radiator;
	}

	public void setRadiator(Radiator radiator) {
		this.radiator = radiator;
	}

	public void setRadiator(int id) {
		radiator = new Radiator();
		radiator.setId(id);
	}

	public Driver getDriver() {
		return driver;
	}

	public void setDriver(Driver driver) {
		this.driver = driver;
	}

	public void setDriver(int id) {
		driver = new Driver();
		driver.setId(id);
	}

	public Monitor getMonitor() {
		return monitor;
	}

	public void setMonitor(Monitor monitor) {
		this.monitor = monitor;
	}

	public void setMonitor(int id) {
		monitor = new Monitor();
		monitor.setId(id);
	}

	public SoundBox getSoundBox() {
		return soundBox;
	}

	public void setSoundBox(SoundBox soundBox) {
		this.soundBox = soundBox;
	}

	public void setSoundBox(int id) {
		soundBox = new SoundBox();
		soundBox.setId(id);
	}

	public SoundCard getSoundCard() {
		return soundCard;
	}

	public void setSoundCard(SoundCard soundCard) {
		this.soundCard = soundCard;
	}

	public void setSoundCard(int id) {
		soundCard = new SoundCard();
		soundCard.setId(id);
	}

	public NetworkAdapter getNetworkAdapter() {
		return networkAdapter;
	}

	public void setNetworkAdapter(NetworkAdapter networkAdapter) {
		this.networkAdapter = networkAdapter;
	}

	public void setNetworkAdapter(int id) {
		networkAdapter = new NetworkAdapter();
		networkAdapter.setId(id);
	}
	
	public String getSchemeName() {
		return schemeName;
	}
	
	public void setSchemeName(String schemeName) {
		this.schemeName = schemeName;
	}
	
	public Value getType() {
		return type;
	}
	
	public void setType(Value type) {
		this.type = type;
	}
	
	public Date getTime() {
		return time;
	}
	
	public void setTime(Date time) {
		this.time = time;
	}
	
	public Long getUserId() {
		return userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public String getUserName() {
		return userName;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public double getWscore() {
		return wscore;
	}
	
	public void setWscore(double wscore) {
		this.wscore = wscore;
	}
	
	public double getZscore() {
		return zscore;
	}
	
	public void setZscore(double zscore) {
		this.zscore = zscore;
	}
	
	public double getPerformance() {
		return performance;
	}
	
	public void setPerformance(double performance) {
		this.performance = performance;
	}
	
	public int getPrice() {
		return price;
	}
	
	public void setPrice(int price) {
		this.price = price;
	}
	
	public int getSale() {
		return sale;
	}
	
	public void setSale(int sale) {
		this.sale = sale;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getRsv1() {
		return rsv1;
	}
	
	public void setRsv1(String rsv1) {
		this.rsv1 = rsv1;
	}
	
	public String getRsv2() {
		return rsv2;
	}
	
	public void setRsv2(String rsv2) {
		this.rsv2 = rsv2;
	}
	
	public String getRsv3() {
		return rsv3;
	}
	
	public void setRsv3(String rsv3) {
		this.rsv3 = rsv3;
	}

}
